<div class="dropdown">
    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"
            aria-haspopup="true" aria-expanded="true">
        key   text
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">

        {% for i in sqr %}
            <li><a href="#">
                 {{ i.0 }}  {{ i.1 }}
            </a></li>
        {% endfor %}

    </ul>
</div>